package com.qianyu.project.mapper;

import com.qianyu.project.entity.TechnicalDisclosure;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 技术交底 Mapper 接口
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
@Repository
public interface TechnicalDisclosureMapper extends BaseMapper<TechnicalDisclosure> {

    List<Map<String, Object>> getList(Map<String, String> map);

    @Select("select max(id) from technical_disclosure where date_format(CURDATE(), '%Y%m')=date_format(update_date, '%Y%m')")
    String getId();
}
